package de.tabuma.soap.entity.wsdl;

import java.io.*;
import java.util.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;service&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="service",mappingType=SoapClassMapping.MappingType.WSDL))
public class TService implements Serializable {

    public TService() {
        this.tExtensibleDocumentedId = new Long(0);
        this.port = new ArrayList<Long>();
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    @SoapAttribute
    private String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    @Persistent
    @SoapExtendsDefinition(extendsClass=TExtensibleDocumented.class)
    private Long tExtensibleDocumentedId;
    public Long getTExtensibleDocumentedId() {
        return tExtensibleDocumentedId;
    }
    public void setTExtensibleDocumentedId(Long tExtensibleDocumentedId) {
        this.tExtensibleDocumentedId = tExtensibleDocumentedId;
    }

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=TPort.class))
    protected List<Long> port;
    public List<Long> getPort() {
        if(this.port==null) {
            this.port = new ArrayList<Long>();
        }
        return this.port;
    }
    public void setPort(List<Long> port) {
        this.port = port;
    }
}